import type { RouteObject } from 'react-router-dom'

export interface XMeta {
  icon?: React.ReactNode // 虚拟dom
  title?: string
}

export interface XRoute extends RouteObject {
  meta?: XMeta
  children?: XRoutes
  hidden?: boolean
}

export type XRoutes = XRoute[]
